package com.acerola.mrpc.protocol;

import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

/**
 * @program: mrpc
 * @description: 帧解码器,解决粘包半包
 * @author: Acerola
 * @create: 2022-12-11 22:33
 **/
public class ProcotolFrameDecoder extends LengthFieldBasedFrameDecoder {
    public ProcotolFrameDecoder() {
        this(1024, 13, 4, 0, 0);
    }


    public ProcotolFrameDecoder(int maxFrameLength, int lengthFieldOffset, int lengthFieldLength, int lengthAdjustment, int initialBytesToStrip) {
        super(maxFrameLength, lengthFieldOffset, lengthFieldLength, lengthAdjustment, initialBytesToStrip);
    }
}
